<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			//连接数组
			var arr1=[1,2,3];
			var arr2=[4,5,6];
			var arr3=arr1.concat(arr2);
			console.log(arr3);
			
			//将数组转换为字符串 并且设置连接符
			var arr4=["林润钿","戴阳","张恩博"];
			 var result=arr4.join("和");
			 console.log(result);
			 
			 //将数组倒序
			 arr4.reverse();
			 console.log(arr4);
			 
			 //将数组拍序，按照un表
			 var arr5=["a","b","d","g"];
			 arr5.sort();
			 console.log(arr5);
			 //数字的话得按下面的来
			 var arr6=[1,2,11,3,30,22];
			 arr6.sort(function(a,b)
			 {
				 return a-b;   //每2个元素都按这样 的方法来排序
			 });
			  console.log(arr6);
		</script>
	</head>
	<body>
	</body>
</html>